<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>rtcpsu: Rtcpsu_v1_0</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="HTML_custom.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="xlogo_bg.gif"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">rtcpsu
   </div>
   <div id="projectbrief">Xilinx SDK Drivers API Documentation</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',false,false,'search.php','Search');
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('group__rtcpsu__v1__0.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#define-members">Macros</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<div class="title">Rtcpsu_v1_0</div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_x_rtc_psu___config.html">XRtcPsu_Config</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">This typedef contains configuration information for a device.  <a href="struct_x_rtc_psu___config.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_x_rtc_psu.html">XRtcPsu</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">The <a class="el" href="struct_x_rtc_psu.html" title="The XRtcPsu driver instance data. ">XRtcPsu</a> driver instance data.  <a href="struct_x_rtc_psu.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_x_rtc_psu___d_t.html">XRtcPsu_DT</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">This typedef contains DateTime format structure.  <a href="struct_x_rtc_psu___d_t.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:gae7da0eb25a60f80358a637f7a2429216"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rtcpsu__v1__0.html#gae7da0eb25a60f80358a637f7a2429216">XRTCPSU_CRYSTAL_OSC_EN</a>&#160;&#160;&#160;(u32)1 &lt;&lt; XRTC_CTL_OSC_SHIFT</td></tr>
<tr class="memdesc:gae7da0eb25a60f80358a637f7a2429216"><td class="mdescLeft">&#160;</td><td class="mdescRight">Separate Mask for Crystal oscillator bit Enable.  <a href="#gae7da0eb25a60f80358a637f7a2429216">More...</a><br /></td></tr>
<tr class="separator:gae7da0eb25a60f80358a637f7a2429216"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2d6afae471b9ad6df9d1ca0ae7c7d16c"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rtcpsu__v1__0.html#ga2d6afae471b9ad6df9d1ca0ae7c7d16c">XRtcPsu_WriteSetTime</a>(InstancePtr,  Time)</td></tr>
<tr class="memdesc:ga2d6afae471b9ad6df9d1ca0ae7c7d16c"><td class="mdescLeft">&#160;</td><td class="mdescRight">This macro updates the current time of RTC device.  <a href="#ga2d6afae471b9ad6df9d1ca0ae7c7d16c">More...</a><br /></td></tr>
<tr class="separator:ga2d6afae471b9ad6df9d1ca0ae7c7d16c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa1d04a3a39aa70df47747733af96e1c7"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rtcpsu__v1__0.html#gaa1d04a3a39aa70df47747733af96e1c7">XRtcPsu_GetLastSetTime</a>(InstancePtr)&#160;&#160;&#160;<a class="el" href="group__rtcpsu__v1__0.html#gaccbbc47feabb330a937816bc347766ea">XRtcPsu_ReadReg</a>((InstancePtr)-&gt;RtcConfig.BaseAddr + <a class="el" href="group__rtcpsu__v1__0.html#gae8aad0b4ff0c6c094abd427ca68bfb72">XRTC_SET_TIME_RD_OFFSET</a>)</td></tr>
<tr class="memdesc:gaa1d04a3a39aa70df47747733af96e1c7"><td class="mdescLeft">&#160;</td><td class="mdescRight">This macro returns the last set time of RTC device.  <a href="#gaa1d04a3a39aa70df47747733af96e1c7">More...</a><br /></td></tr>
<tr class="separator:gaa1d04a3a39aa70df47747733af96e1c7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4464d5485ee8d997454a4eff3c497040"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rtcpsu__v1__0.html#ga4464d5485ee8d997454a4eff3c497040">XRtcPsu_GetCalibration</a>(InstancePtr)&#160;&#160;&#160;<a class="el" href="group__rtcpsu__v1__0.html#gaccbbc47feabb330a937816bc347766ea">XRtcPsu_ReadReg</a>((InstancePtr)-&gt;RtcConfig.BaseAddr+<a class="el" href="group__rtcpsu__v1__0.html#ga1370c975fd33563789e4a6737599668a">XRTC_CALIB_RD_OFFSET</a>)</td></tr>
<tr class="memdesc:ga4464d5485ee8d997454a4eff3c497040"><td class="mdescLeft">&#160;</td><td class="mdescRight">This macro returns the calibration value of RTC device.  <a href="#ga4464d5485ee8d997454a4eff3c497040">More...</a><br /></td></tr>
<tr class="separator:ga4464d5485ee8d997454a4eff3c497040"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac30a01306c1b613d66fb25777962ff9f"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rtcpsu__v1__0.html#gac30a01306c1b613d66fb25777962ff9f">XRtcPsu_ReadCurrentTime</a>(InstancePtr)&#160;&#160;&#160;<a class="el" href="group__rtcpsu__v1__0.html#gaccbbc47feabb330a937816bc347766ea">XRtcPsu_ReadReg</a>((InstancePtr)-&gt;RtcConfig.BaseAddr+<a class="el" href="group__rtcpsu__v1__0.html#ga7fa52cd698601011816bcb3a78cabc6a">XRTC_CUR_TIME_OFFSET</a>)</td></tr>
<tr class="memdesc:gac30a01306c1b613d66fb25777962ff9f"><td class="mdescLeft">&#160;</td><td class="mdescRight">This macro returns the current time of RTC device.  <a href="#gac30a01306c1b613d66fb25777962ff9f">More...</a><br /></td></tr>
<tr class="separator:gac30a01306c1b613d66fb25777962ff9f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa4a4dde16482fe7d440b14d0ce315236"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rtcpsu__v1__0.html#gaa4a4dde16482fe7d440b14d0ce315236">XRtcPsu_SetControlRegister</a>(InstancePtr,  Value)</td></tr>
<tr class="memdesc:gaa4a4dde16482fe7d440b14d0ce315236"><td class="mdescLeft">&#160;</td><td class="mdescRight">This macro sets the control register value of RTC device.  <a href="#gaa4a4dde16482fe7d440b14d0ce315236">More...</a><br /></td></tr>
<tr class="separator:gaa4a4dde16482fe7d440b14d0ce315236"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga96ee0ca8660637a0b1bdd5feacdf9ac3"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rtcpsu__v1__0.html#ga96ee0ca8660637a0b1bdd5feacdf9ac3">XRtcPsu_GetSafetyCheck</a>(InstancePtr)&#160;&#160;&#160;<a class="el" href="group__rtcpsu__v1__0.html#gaccbbc47feabb330a937816bc347766ea">XRtcPsu_ReadReg</a>((InstancePtr)-&gt;RtcConfig.BaseAddr+<a class="el" href="group__rtcpsu__v1__0.html#ga1f92062d8d2cb1c7f0735b1ecd5cdb67">XRTC_SFTY_CHK_OFFSET</a>)</td></tr>
<tr class="memdesc:ga96ee0ca8660637a0b1bdd5feacdf9ac3"><td class="mdescLeft">&#160;</td><td class="mdescRight">This macro returns the safety check register value of RTC device.  <a href="#ga96ee0ca8660637a0b1bdd5feacdf9ac3">More...</a><br /></td></tr>
<tr class="separator:ga96ee0ca8660637a0b1bdd5feacdf9ac3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga01aef4471440e437100dcefd0cf31c47"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rtcpsu__v1__0.html#ga01aef4471440e437100dcefd0cf31c47">XRtcPsu_SetSafetyCheck</a>(InstancePtr,  Value)</td></tr>
<tr class="memdesc:ga01aef4471440e437100dcefd0cf31c47"><td class="mdescLeft">&#160;</td><td class="mdescRight">This macro sets the safety check register value of RTC device.  <a href="#ga01aef4471440e437100dcefd0cf31c47">More...</a><br /></td></tr>
<tr class="separator:ga01aef4471440e437100dcefd0cf31c47"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf491d4fa3c779586da882c0c3e75c80e"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rtcpsu__v1__0.html#gaf491d4fa3c779586da882c0c3e75c80e">XRtcPsu_ResetAlarm</a>(InstancePtr)</td></tr>
<tr class="memdesc:gaf491d4fa3c779586da882c0c3e75c80e"><td class="mdescLeft">&#160;</td><td class="mdescRight">This macro resets the alarm register.  <a href="#gaf491d4fa3c779586da882c0c3e75c80e">More...</a><br /></td></tr>
<tr class="separator:gaf491d4fa3c779586da882c0c3e75c80e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab9fa0e5d7c9536a238863272a1e21bfa"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rtcpsu__v1__0.html#gab9fa0e5d7c9536a238863272a1e21bfa">XRtcPsu_RoundOff</a>(Number)&#160;&#160;&#160;(u32)(((Number) &lt; (u32)0) ? ((Number) - (u32)0.5) : ((Number) + (u32)0.5))</td></tr>
<tr class="memdesc:gab9fa0e5d7c9536a238863272a1e21bfa"><td class="mdescLeft">&#160;</td><td class="mdescRight">This macro rounds off the given number.  <a href="#gab9fa0e5d7c9536a238863272a1e21bfa">More...</a><br /></td></tr>
<tr class="separator:gab9fa0e5d7c9536a238863272a1e21bfa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf4ce7179e0fe961edf74c804ae1be55f"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rtcpsu__v1__0.html#gaf4ce7179e0fe961edf74c804ae1be55f">XRTC_BASEADDR</a>&#160;&#160;&#160;0xFFA60000U</td></tr>
<tr class="memdesc:gaf4ce7179e0fe961edf74c804ae1be55f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Xrtc Base Address.  <a href="#gaf4ce7179e0fe961edf74c804ae1be55f">More...</a><br /></td></tr>
<tr class="separator:gaf4ce7179e0fe961edf74c804ae1be55f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga15fe16b0b19b172cc0b43af6c94698df"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rtcpsu__v1__0.html#ga15fe16b0b19b172cc0b43af6c94698df">XRTC_SET_TIME_WR_OFFSET</a>&#160;&#160;&#160;0x00000000U</td></tr>
<tr class="memdesc:ga15fe16b0b19b172cc0b43af6c94698df"><td class="mdescLeft">&#160;</td><td class="mdescRight">Register: XrtcSetTimeWr.  <a href="#ga15fe16b0b19b172cc0b43af6c94698df">More...</a><br /></td></tr>
<tr class="separator:ga15fe16b0b19b172cc0b43af6c94698df"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae8aad0b4ff0c6c094abd427ca68bfb72"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rtcpsu__v1__0.html#gae8aad0b4ff0c6c094abd427ca68bfb72">XRTC_SET_TIME_RD_OFFSET</a>&#160;&#160;&#160;0x00000004U</td></tr>
<tr class="memdesc:gae8aad0b4ff0c6c094abd427ca68bfb72"><td class="mdescLeft">&#160;</td><td class="mdescRight">Register: XrtcSetTimeRd.  <a href="#gae8aad0b4ff0c6c094abd427ca68bfb72">More...</a><br /></td></tr>
<tr class="separator:gae8aad0b4ff0c6c094abd427ca68bfb72"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7226dae4931d57f6e45a86c0b1b8fa2f"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rtcpsu__v1__0.html#ga7226dae4931d57f6e45a86c0b1b8fa2f">XRTC_CALIB_WR_OFFSET</a>&#160;&#160;&#160;0x00000008U</td></tr>
<tr class="memdesc:ga7226dae4931d57f6e45a86c0b1b8fa2f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Register: XrtcCalibWr.  <a href="#ga7226dae4931d57f6e45a86c0b1b8fa2f">More...</a><br /></td></tr>
<tr class="separator:ga7226dae4931d57f6e45a86c0b1b8fa2f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1370c975fd33563789e4a6737599668a"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rtcpsu__v1__0.html#ga1370c975fd33563789e4a6737599668a">XRTC_CALIB_RD_OFFSET</a>&#160;&#160;&#160;0x0000000CU</td></tr>
<tr class="memdesc:ga1370c975fd33563789e4a6737599668a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Register: XrtcCalibRd.  <a href="#ga1370c975fd33563789e4a6737599668a">More...</a><br /></td></tr>
<tr class="separator:ga1370c975fd33563789e4a6737599668a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7fa52cd698601011816bcb3a78cabc6a"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rtcpsu__v1__0.html#ga7fa52cd698601011816bcb3a78cabc6a">XRTC_CUR_TIME_OFFSET</a>&#160;&#160;&#160;0x00000010U</td></tr>
<tr class="memdesc:ga7fa52cd698601011816bcb3a78cabc6a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Register: XrtcCurTime.  <a href="#ga7fa52cd698601011816bcb3a78cabc6a">More...</a><br /></td></tr>
<tr class="separator:ga7fa52cd698601011816bcb3a78cabc6a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4fcad14886e97664d39d03c875332cfc"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rtcpsu__v1__0.html#ga4fcad14886e97664d39d03c875332cfc">XRTC_CUR_TCK_OFFSET</a>&#160;&#160;&#160;0x00000014U</td></tr>
<tr class="memdesc:ga4fcad14886e97664d39d03c875332cfc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Register: XrtcCurTck.  <a href="#ga4fcad14886e97664d39d03c875332cfc">More...</a><br /></td></tr>
<tr class="separator:ga4fcad14886e97664d39d03c875332cfc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaefe187edd9e6057a21bed63b21980824"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rtcpsu__v1__0.html#gaefe187edd9e6057a21bed63b21980824">XRTC_ALRM_OFFSET</a>&#160;&#160;&#160;0x00000018U</td></tr>
<tr class="memdesc:gaefe187edd9e6057a21bed63b21980824"><td class="mdescLeft">&#160;</td><td class="mdescRight">Register: XrtcAlrm.  <a href="#gaefe187edd9e6057a21bed63b21980824">More...</a><br /></td></tr>
<tr class="separator:gaefe187edd9e6057a21bed63b21980824"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5031f5d32d26c4887751966503470c83"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rtcpsu__v1__0.html#ga5031f5d32d26c4887751966503470c83">XRTC_INT_STS_OFFSET</a>&#160;&#160;&#160;0x00000020U</td></tr>
<tr class="memdesc:ga5031f5d32d26c4887751966503470c83"><td class="mdescLeft">&#160;</td><td class="mdescRight">Register: XrtcIntSts.  <a href="#ga5031f5d32d26c4887751966503470c83">More...</a><br /></td></tr>
<tr class="separator:ga5031f5d32d26c4887751966503470c83"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac915150ede3fb8aab0d68c1ed072e4f8"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rtcpsu__v1__0.html#gac915150ede3fb8aab0d68c1ed072e4f8">XRTC_INT_MSK_OFFSET</a>&#160;&#160;&#160;0x00000024U</td></tr>
<tr class="memdesc:gac915150ede3fb8aab0d68c1ed072e4f8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Register: XrtcIntMsk.  <a href="#gac915150ede3fb8aab0d68c1ed072e4f8">More...</a><br /></td></tr>
<tr class="separator:gac915150ede3fb8aab0d68c1ed072e4f8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga47db526c5faf75df46c2dc78b84dfb7b"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rtcpsu__v1__0.html#ga47db526c5faf75df46c2dc78b84dfb7b">XRTC_INT_EN_OFFSET</a>&#160;&#160;&#160;0x00000028U</td></tr>
<tr class="memdesc:ga47db526c5faf75df46c2dc78b84dfb7b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Register: XrtcIntEn.  <a href="#ga47db526c5faf75df46c2dc78b84dfb7b">More...</a><br /></td></tr>
<tr class="separator:ga47db526c5faf75df46c2dc78b84dfb7b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac41e797cd2c6162d086c237426eafa9e"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rtcpsu__v1__0.html#gac41e797cd2c6162d086c237426eafa9e">XRTC_INT_DIS_OFFSET</a>&#160;&#160;&#160;0x0000002CU</td></tr>
<tr class="memdesc:gac41e797cd2c6162d086c237426eafa9e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Register: XrtcIntDis.  <a href="#gac41e797cd2c6162d086c237426eafa9e">More...</a><br /></td></tr>
<tr class="separator:gac41e797cd2c6162d086c237426eafa9e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga36067195ea62374e6d16e333a5cb1ed5"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rtcpsu__v1__0.html#ga36067195ea62374e6d16e333a5cb1ed5">XRTC_ADD_ERR_OFFSET</a>&#160;&#160;&#160;0x00000030U</td></tr>
<tr class="memdesc:ga36067195ea62374e6d16e333a5cb1ed5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Register: XrtcAddErr.  <a href="#ga36067195ea62374e6d16e333a5cb1ed5">More...</a><br /></td></tr>
<tr class="separator:ga36067195ea62374e6d16e333a5cb1ed5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa4f868462eb1d1f06c4224696cb43429"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rtcpsu__v1__0.html#gaa4f868462eb1d1f06c4224696cb43429">XRTC_ADD_ERR_INT_MSK_OFFSET</a>&#160;&#160;&#160;0x00000034U</td></tr>
<tr class="memdesc:gaa4f868462eb1d1f06c4224696cb43429"><td class="mdescLeft">&#160;</td><td class="mdescRight">Register: XrtcAddErrIntMsk.  <a href="#gaa4f868462eb1d1f06c4224696cb43429">More...</a><br /></td></tr>
<tr class="separator:gaa4f868462eb1d1f06c4224696cb43429"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga795e7dac0dfda7c2cb1f08f27c415d01"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rtcpsu__v1__0.html#ga795e7dac0dfda7c2cb1f08f27c415d01">XRTC_ADD_ERR_INT_EN_OFFSET</a>&#160;&#160;&#160;0x00000038U</td></tr>
<tr class="memdesc:ga795e7dac0dfda7c2cb1f08f27c415d01"><td class="mdescLeft">&#160;</td><td class="mdescRight">Register: XrtcAddErrIntEn.  <a href="#ga795e7dac0dfda7c2cb1f08f27c415d01">More...</a><br /></td></tr>
<tr class="separator:ga795e7dac0dfda7c2cb1f08f27c415d01"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga578c0e1d126e0292d9e849afdbff5a6a"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rtcpsu__v1__0.html#ga578c0e1d126e0292d9e849afdbff5a6a">XRTC_ADD_ERR_INT_DIS_OFFSET</a>&#160;&#160;&#160;0x0000003CU</td></tr>
<tr class="memdesc:ga578c0e1d126e0292d9e849afdbff5a6a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Register: XrtcAddErrIntDis.  <a href="#ga578c0e1d126e0292d9e849afdbff5a6a">More...</a><br /></td></tr>
<tr class="separator:ga578c0e1d126e0292d9e849afdbff5a6a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0fc893db4a633de94bdfc6f4f59df62f"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rtcpsu__v1__0.html#ga0fc893db4a633de94bdfc6f4f59df62f">XRTC_CTL_OFFSET</a>&#160;&#160;&#160;0x00000040U</td></tr>
<tr class="memdesc:ga0fc893db4a633de94bdfc6f4f59df62f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Register: XrtcCtl.  <a href="#ga0fc893db4a633de94bdfc6f4f59df62f">More...</a><br /></td></tr>
<tr class="separator:ga0fc893db4a633de94bdfc6f4f59df62f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1f92062d8d2cb1c7f0735b1ecd5cdb67"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rtcpsu__v1__0.html#ga1f92062d8d2cb1c7f0735b1ecd5cdb67">XRTC_SFTY_CHK_OFFSET</a>&#160;&#160;&#160;0x00000050U</td></tr>
<tr class="memdesc:ga1f92062d8d2cb1c7f0735b1ecd5cdb67"><td class="mdescLeft">&#160;</td><td class="mdescRight">Register: XrtcSftyChk.  <a href="#ga1f92062d8d2cb1c7f0735b1ecd5cdb67">More...</a><br /></td></tr>
<tr class="separator:ga1f92062d8d2cb1c7f0735b1ecd5cdb67"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae7215b93f23fe1ef6cff1004104a803b"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rtcpsu__v1__0.html#gae7215b93f23fe1ef6cff1004104a803b">XRTC_ECO_OFFSET</a>&#160;&#160;&#160;0x00000060U</td></tr>
<tr class="memdesc:gae7215b93f23fe1ef6cff1004104a803b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Register: XrtcEco.  <a href="#gae7215b93f23fe1ef6cff1004104a803b">More...</a><br /></td></tr>
<tr class="separator:gae7215b93f23fe1ef6cff1004104a803b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaccbbc47feabb330a937816bc347766ea"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rtcpsu__v1__0.html#gaccbbc47feabb330a937816bc347766ea">XRtcPsu_ReadReg</a>(RegisterAddr)&#160;&#160;&#160;Xil_In32(RegisterAddr)</td></tr>
<tr class="memdesc:gaccbbc47feabb330a937816bc347766ea"><td class="mdescLeft">&#160;</td><td class="mdescRight">This macro reads the given register.  <a href="#gaccbbc47feabb330a937816bc347766ea">More...</a><br /></td></tr>
<tr class="separator:gaccbbc47feabb330a937816bc347766ea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac80374611ede3fc00461df6aaff75028"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rtcpsu__v1__0.html#gac80374611ede3fc00461df6aaff75028">XRtcPsu_WriteReg</a>(RegisterAddr,  Data)&#160;&#160;&#160;Xil_Out32(RegisterAddr, (u32)(Data))</td></tr>
<tr class="memdesc:gac80374611ede3fc00461df6aaff75028"><td class="mdescLeft">&#160;</td><td class="mdescRight">This macro writes the given register.  <a href="#gac80374611ede3fc00461df6aaff75028">More...</a><br /></td></tr>
<tr class="separator:gac80374611ede3fc00461df6aaff75028"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:ga8ca73beea761e79bd8faec4fa86f0d17"><td class="memItemLeft" align="right" valign="top">typedef void(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rtcpsu__v1__0.html#ga8ca73beea761e79bd8faec4fa86f0d17">XRtcPsu_Handler</a>) (void *CallBackRef, u32 Event)</td></tr>
<tr class="memdesc:ga8ca73beea761e79bd8faec4fa86f0d17"><td class="mdescLeft">&#160;</td><td class="mdescRight">This data type defines a handler that an application defines to communicate with interrupt system to retrieve state information about an application.  <a href="#ga8ca73beea761e79bd8faec4fa86f0d17">More...</a><br /></td></tr>
<tr class="separator:ga8ca73beea761e79bd8faec4fa86f0d17"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga71a08172e9403add8c6ec37842b49512"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rtcpsu__v1__0.html#ga71a08172e9403add8c6ec37842b49512">XRtcPsu_SetTime</a> (<a class="el" href="struct_x_rtc_psu.html">XRtcPsu</a> *InstancePtr, u32 Time)</td></tr>
<tr class="memdesc:ga71a08172e9403add8c6ec37842b49512"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function sets the RTC time by writing into rtc write register.  <a href="#ga71a08172e9403add8c6ec37842b49512">More...</a><br /></td></tr>
<tr class="separator:ga71a08172e9403add8c6ec37842b49512"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad47ac1cadbbe8dd0e67588d1fc658cc2"><td class="memItemLeft" align="right" valign="top">u32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rtcpsu__v1__0.html#gad47ac1cadbbe8dd0e67588d1fc658cc2">XRtcPsu_GetCurrentTime</a> (<a class="el" href="struct_x_rtc_psu.html">XRtcPsu</a> *InstancePtr)</td></tr>
<tr class="memdesc:gad47ac1cadbbe8dd0e67588d1fc658cc2"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function gets the current RTC time.  <a href="#gad47ac1cadbbe8dd0e67588d1fc658cc2">More...</a><br /></td></tr>
<tr class="separator:gad47ac1cadbbe8dd0e67588d1fc658cc2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga201537801ac896c73018a8719e8637d8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rtcpsu__v1__0.html#ga201537801ac896c73018a8719e8637d8">XRtcPsu_SetAlarm</a> (<a class="el" href="struct_x_rtc_psu.html">XRtcPsu</a> *InstancePtr, u32 Alarm, u32 Periodic)</td></tr>
<tr class="memdesc:ga201537801ac896c73018a8719e8637d8"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function sets the alarm value of RTC device.  <a href="#ga201537801ac896c73018a8719e8637d8">More...</a><br /></td></tr>
<tr class="separator:ga201537801ac896c73018a8719e8637d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaac3d95ea1a75533a1fd3cd95d62a9914"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rtcpsu__v1__0.html#gaac3d95ea1a75533a1fd3cd95d62a9914">XRtcPsu_SecToDateTime</a> (u32 Seconds, <a class="el" href="struct_x_rtc_psu___d_t.html">XRtcPsu_DT</a> *dt)</td></tr>
<tr class="memdesc:gaac3d95ea1a75533a1fd3cd95d62a9914"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function translates time in seconds to a YEAR:MON:DAY HR:MIN:SEC format and saves it in the DT structure variable.  <a href="#gaac3d95ea1a75533a1fd3cd95d62a9914">More...</a><br /></td></tr>
<tr class="separator:gaac3d95ea1a75533a1fd3cd95d62a9914"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga15d97f88e65f27121f56f06480717824"><td class="memItemLeft" align="right" valign="top">u32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rtcpsu__v1__0.html#ga15d97f88e65f27121f56f06480717824">XRtcPsu_DateTimeToSec</a> (<a class="el" href="struct_x_rtc_psu___d_t.html">XRtcPsu_DT</a> *dt)</td></tr>
<tr class="memdesc:ga15d97f88e65f27121f56f06480717824"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function translates time in YEAR:MON:DAY HR:MIN:SEC format to seconds.  <a href="#ga15d97f88e65f27121f56f06480717824">More...</a><br /></td></tr>
<tr class="separator:ga15d97f88e65f27121f56f06480717824"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga33633f27f8155128cc6815d883f9e22c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rtcpsu__v1__0.html#ga33633f27f8155128cc6815d883f9e22c">XRtcPsu_CalculateCalibration</a> (<a class="el" href="struct_x_rtc_psu.html">XRtcPsu</a> *InstancePtr, u32 TimeReal, u32 CrystalOscFreq)</td></tr>
<tr class="memdesc:ga33633f27f8155128cc6815d883f9e22c"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function calculates the calibration value depending on the actual realworld time and also helps in deriving new calibration value if the user wishes to change his oscillator frequency.TimeReal is generally the internet time with EPOCH time as reference i.e.,1/1/1970 1st second.  <a href="#ga33633f27f8155128cc6815d883f9e22c">More...</a><br /></td></tr>
<tr class="separator:ga33633f27f8155128cc6815d883f9e22c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gafe9ec3849cca99b5d67f76ffafcc3ab2"><td class="memItemLeft" align="right" valign="top">u32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rtcpsu__v1__0.html#gafe9ec3849cca99b5d67f76ffafcc3ab2">XRtcPsu_IsSecondsEventGenerated</a> (<a class="el" href="struct_x_rtc_psu.html">XRtcPsu</a> *InstancePtr)</td></tr>
<tr class="memdesc:gafe9ec3849cca99b5d67f76ffafcc3ab2"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function returns the seconds event status by reading interrupt status register.  <a href="#gafe9ec3849cca99b5d67f76ffafcc3ab2">More...</a><br /></td></tr>
<tr class="separator:gafe9ec3849cca99b5d67f76ffafcc3ab2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga75de01e02970e25ccbbeb1af33d0e808"><td class="memItemLeft" align="right" valign="top">u32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rtcpsu__v1__0.html#ga75de01e02970e25ccbbeb1af33d0e808">XRtcPsu_IsAlarmEventGenerated</a> (<a class="el" href="struct_x_rtc_psu.html">XRtcPsu</a> *InstancePtr)</td></tr>
<tr class="memdesc:ga75de01e02970e25ccbbeb1af33d0e808"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function returns the alarm event status by reading interrupt status register.  <a href="#ga75de01e02970e25ccbbeb1af33d0e808">More...</a><br /></td></tr>
<tr class="separator:ga75de01e02970e25ccbbeb1af33d0e808"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga645920d3519722e8dc815d07db527367"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rtcpsu__v1__0.html#ga645920d3519722e8dc815d07db527367">XRtcPsu_SetInterruptMask</a> (<a class="el" href="struct_x_rtc_psu.html">XRtcPsu</a> *InstancePtr, u32 Mask)</td></tr>
<tr class="memdesc:ga645920d3519722e8dc815d07db527367"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function sets the interrupt mask.  <a href="#ga645920d3519722e8dc815d07db527367">More...</a><br /></td></tr>
<tr class="separator:ga645920d3519722e8dc815d07db527367"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaefced00316539320411829b4d701fe3c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rtcpsu__v1__0.html#gaefced00316539320411829b4d701fe3c">XRtcPsu_ClearInterruptMask</a> (<a class="el" href="struct_x_rtc_psu.html">XRtcPsu</a> *InstancePtr, u32 Mask)</td></tr>
<tr class="memdesc:gaefced00316539320411829b4d701fe3c"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function clears the interrupt mask.  <a href="#gaefced00316539320411829b4d701fe3c">More...</a><br /></td></tr>
<tr class="separator:gaefced00316539320411829b4d701fe3c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga01ca03d23194687c8026dc2f38da6ff7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rtcpsu__v1__0.html#ga01ca03d23194687c8026dc2f38da6ff7">XRtcPsu_InterruptHandler</a> (<a class="el" href="struct_x_rtc_psu.html">XRtcPsu</a> *InstancePtr)</td></tr>
<tr class="memdesc:ga01ca03d23194687c8026dc2f38da6ff7"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function is the interrupt handler for the driver.  <a href="#ga01ca03d23194687c8026dc2f38da6ff7">More...</a><br /></td></tr>
<tr class="separator:ga01ca03d23194687c8026dc2f38da6ff7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6c782a1e080607664a88ae6dcb994c30"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rtcpsu__v1__0.html#ga6c782a1e080607664a88ae6dcb994c30">XRtcPsu_SetHandler</a> (<a class="el" href="struct_x_rtc_psu.html">XRtcPsu</a> *InstancePtr, <a class="el" href="group__rtcpsu__v1__0.html#ga8ca73beea761e79bd8faec4fa86f0d17">XRtcPsu_Handler</a> FuncPtr, void *CallBackRef)</td></tr>
<tr class="memdesc:ga6c782a1e080607664a88ae6dcb994c30"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function sets the handler that will be called when an event (interrupt) occurs that needs application's attention.  <a href="#ga6c782a1e080607664a88ae6dcb994c30">More...</a><br /></td></tr>
<tr class="separator:ga6c782a1e080607664a88ae6dcb994c30"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1c969c089715ea9a86cec887c09f9b92"><td class="memItemLeft" align="right" valign="top">s32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rtcpsu__v1__0.html#ga1c969c089715ea9a86cec887c09f9b92">XRtcPsu_SelfTest</a> (<a class="el" href="struct_x_rtc_psu.html">XRtcPsu</a> *InstancePtr)</td></tr>
<tr class="memdesc:ga1c969c089715ea9a86cec887c09f9b92"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function runs a self-test on the driver and hardware device.  <a href="#ga1c969c089715ea9a86cec887c09f9b92">More...</a><br /></td></tr>
<tr class="separator:ga1c969c089715ea9a86cec887c09f9b92"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga665fbe64a08c5b13b838ab7b69188e3e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_x_rtc_psu___config.html">XRtcPsu_Config</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rtcpsu__v1__0.html#ga665fbe64a08c5b13b838ab7b69188e3e">XRtcPsu_LookupConfig</a> (u16 DeviceId)</td></tr>
<tr class="memdesc:ga665fbe64a08c5b13b838ab7b69188e3e"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function looks for the device configuration based on the unique device ID.  <a href="#ga665fbe64a08c5b13b838ab7b69188e3e">More...</a><br /></td></tr>
<tr class="separator:ga665fbe64a08c5b13b838ab7b69188e3e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:ga7f054b6447c2f28c939019a778269a6a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_x_rtc_psu___config.html">XRtcPsu_Config</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rtcpsu__v1__0.html#ga7f054b6447c2f28c939019a778269a6a">XRtcPsu_ConfigTable</a> [XPAR_XRTCPSU_NUM_INSTANCES]</td></tr>
<tr class="memdesc:ga7f054b6447c2f28c939019a778269a6a"><td class="mdescLeft">&#160;</td><td class="mdescRight">This table contains configuration information for RTC device in the system.  <a href="#ga7f054b6447c2f28c939019a778269a6a">More...</a><br /></td></tr>
<tr class="separator:ga7f054b6447c2f28c939019a778269a6a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gadf97c5e3ff213a6f3e5cb4851b3cf8e8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_x_rtc_psu___config.html">XRtcPsu_Config</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rtcpsu__v1__0.html#gadf97c5e3ff213a6f3e5cb4851b3cf8e8">XRtcPsu_ConfigTable</a> []</td></tr>
<tr class="memdesc:gadf97c5e3ff213a6f3e5cb4851b3cf8e8"><td class="mdescLeft">&#160;</td><td class="mdescRight">This table contains configuration information for RTC device in the system.  <a href="#gadf97c5e3ff213a6f3e5cb4851b3cf8e8">More...</a><br /></td></tr>
<tr class="separator:gadf97c5e3ff213a6f3e5cb4851b3cf8e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
Callback events</h2></td></tr>
<tr><td class="ititle" colspan="2"><p><a class="anchor" id="amgrpc478b096d0c15f7e00fb1b0587e19c87"></a>These constants specify the handler events that an application can handle using its specific handler function.</p>
<p>Note that these constants are not bit mask, so only one event can be passed to an application at a time. </p>
</td></tr>
<tr class="memitem:gad594fbf58a112754966cb4ed07a93fa2"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rtcpsu__v1__0.html#gad594fbf58a112754966cb4ed07a93fa2">XRTCPSU_EVENT_ALARM_GEN</a>&#160;&#160;&#160;1U</td></tr>
<tr class="memdesc:gad594fbf58a112754966cb4ed07a93fa2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Alarm generated event.  <a href="#gad594fbf58a112754966cb4ed07a93fa2">More...</a><br /></td></tr>
<tr class="separator:gad594fbf58a112754966cb4ed07a93fa2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf214f251bc04f17da88cda3e7f91bd99"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rtcpsu__v1__0.html#gaf214f251bc04f17da88cda3e7f91bd99">XRTCPSU_EVENT_SECS_GEN</a>&#160;&#160;&#160;2U</td></tr>
<tr class="memdesc:gaf214f251bc04f17da88cda3e7f91bd99"><td class="mdescLeft">&#160;</td><td class="mdescRight">A new second generated event.  <a href="#gaf214f251bc04f17da88cda3e7f91bd99">More...</a><br /></td></tr>
<tr class="separator:gaf214f251bc04f17da88cda3e7f91bd99"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a id="ga578c0e1d126e0292d9e849afdbff5a6a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga578c0e1d126e0292d9e849afdbff5a6a">&#9670;&nbsp;</a></span>XRTC_ADD_ERR_INT_DIS_OFFSET</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XRTC_ADD_ERR_INT_DIS_OFFSET&#160;&#160;&#160;0x0000003CU</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xrtcpsu__hw_8h.html">xrtcpsu_hw.h</a>&gt;</code></p>

<p>Register: XrtcAddErrIntDis. </p>

</div>
</div>
<a id="ga795e7dac0dfda7c2cb1f08f27c415d01"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga795e7dac0dfda7c2cb1f08f27c415d01">&#9670;&nbsp;</a></span>XRTC_ADD_ERR_INT_EN_OFFSET</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XRTC_ADD_ERR_INT_EN_OFFSET&#160;&#160;&#160;0x00000038U</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xrtcpsu__hw_8h.html">xrtcpsu_hw.h</a>&gt;</code></p>

<p>Register: XrtcAddErrIntEn. </p>

</div>
</div>
<a id="gaa4f868462eb1d1f06c4224696cb43429"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa4f868462eb1d1f06c4224696cb43429">&#9670;&nbsp;</a></span>XRTC_ADD_ERR_INT_MSK_OFFSET</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XRTC_ADD_ERR_INT_MSK_OFFSET&#160;&#160;&#160;0x00000034U</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xrtcpsu__hw_8h.html">xrtcpsu_hw.h</a>&gt;</code></p>

<p>Register: XrtcAddErrIntMsk. </p>

</div>
</div>
<a id="ga36067195ea62374e6d16e333a5cb1ed5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga36067195ea62374e6d16e333a5cb1ed5">&#9670;&nbsp;</a></span>XRTC_ADD_ERR_OFFSET</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XRTC_ADD_ERR_OFFSET&#160;&#160;&#160;0x00000030U</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xrtcpsu__hw_8h.html">xrtcpsu_hw.h</a>&gt;</code></p>

<p>Register: XrtcAddErr. </p>

</div>
</div>
<a id="gaefe187edd9e6057a21bed63b21980824"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaefe187edd9e6057a21bed63b21980824">&#9670;&nbsp;</a></span>XRTC_ALRM_OFFSET</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XRTC_ALRM_OFFSET&#160;&#160;&#160;0x00000018U</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xrtcpsu__hw_8h.html">xrtcpsu_hw.h</a>&gt;</code></p>

<p>Register: XrtcAlrm. </p>

<p class="reference">Referenced by <a class="el" href="group__rtcpsu__v1__0.html#ga201537801ac896c73018a8719e8637d8">XRtcPsu_SetAlarm()</a>.</p>

</div>
</div>
<a id="gaf4ce7179e0fe961edf74c804ae1be55f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf4ce7179e0fe961edf74c804ae1be55f">&#9670;&nbsp;</a></span>XRTC_BASEADDR</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XRTC_BASEADDR&#160;&#160;&#160;0xFFA60000U</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xrtcpsu__hw_8h.html">xrtcpsu_hw.h</a>&gt;</code></p>

<p>Xrtc Base Address. </p>

</div>
</div>
<a id="ga1370c975fd33563789e4a6737599668a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga1370c975fd33563789e4a6737599668a">&#9670;&nbsp;</a></span>XRTC_CALIB_RD_OFFSET</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XRTC_CALIB_RD_OFFSET&#160;&#160;&#160;0x0000000CU</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xrtcpsu__hw_8h.html">xrtcpsu_hw.h</a>&gt;</code></p>

<p>Register: XrtcCalibRd. </p>

</div>
</div>
<a id="ga7226dae4931d57f6e45a86c0b1b8fa2f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga7226dae4931d57f6e45a86c0b1b8fa2f">&#9670;&nbsp;</a></span>XRTC_CALIB_WR_OFFSET</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XRTC_CALIB_WR_OFFSET&#160;&#160;&#160;0x00000008U</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xrtcpsu__hw_8h.html">xrtcpsu_hw.h</a>&gt;</code></p>

<p>Register: XrtcCalibWr. </p>

<p class="reference">Referenced by <a class="el" href="group__rtcpsu__v1__0.html#ga71a08172e9403add8c6ec37842b49512">XRtcPsu_SetTime()</a>.</p>

</div>
</div>
<a id="ga0fc893db4a633de94bdfc6f4f59df62f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga0fc893db4a633de94bdfc6f4f59df62f">&#9670;&nbsp;</a></span>XRTC_CTL_OFFSET</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XRTC_CTL_OFFSET&#160;&#160;&#160;0x00000040U</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xrtcpsu__hw_8h.html">xrtcpsu_hw.h</a>&gt;</code></p>

<p>Register: XrtcCtl. </p>

</div>
</div>
<a id="ga4fcad14886e97664d39d03c875332cfc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga4fcad14886e97664d39d03c875332cfc">&#9670;&nbsp;</a></span>XRTC_CUR_TCK_OFFSET</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XRTC_CUR_TCK_OFFSET&#160;&#160;&#160;0x00000014U</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xrtcpsu__hw_8h.html">xrtcpsu_hw.h</a>&gt;</code></p>

<p>Register: XrtcCurTck. </p>

</div>
</div>
<a id="ga7fa52cd698601011816bcb3a78cabc6a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga7fa52cd698601011816bcb3a78cabc6a">&#9670;&nbsp;</a></span>XRTC_CUR_TIME_OFFSET</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XRTC_CUR_TIME_OFFSET&#160;&#160;&#160;0x00000010U</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xrtcpsu__hw_8h.html">xrtcpsu_hw.h</a>&gt;</code></p>

<p>Register: XrtcCurTime. </p>

</div>
</div>
<a id="gae7215b93f23fe1ef6cff1004104a803b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae7215b93f23fe1ef6cff1004104a803b">&#9670;&nbsp;</a></span>XRTC_ECO_OFFSET</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XRTC_ECO_OFFSET&#160;&#160;&#160;0x00000060U</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xrtcpsu__hw_8h.html">xrtcpsu_hw.h</a>&gt;</code></p>

<p>Register: XrtcEco. </p>

</div>
</div>
<a id="gac41e797cd2c6162d086c237426eafa9e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gac41e797cd2c6162d086c237426eafa9e">&#9670;&nbsp;</a></span>XRTC_INT_DIS_OFFSET</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XRTC_INT_DIS_OFFSET&#160;&#160;&#160;0x0000002CU</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xrtcpsu__hw_8h.html">xrtcpsu_hw.h</a>&gt;</code></p>

<p>Register: XrtcIntDis. </p>

<p class="reference">Referenced by <a class="el" href="group__rtcpsu__v1__0.html#gaefced00316539320411829b4d701fe3c">XRtcPsu_ClearInterruptMask()</a>.</p>

</div>
</div>
<a id="ga47db526c5faf75df46c2dc78b84dfb7b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga47db526c5faf75df46c2dc78b84dfb7b">&#9670;&nbsp;</a></span>XRTC_INT_EN_OFFSET</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XRTC_INT_EN_OFFSET&#160;&#160;&#160;0x00000028U</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xrtcpsu__hw_8h.html">xrtcpsu_hw.h</a>&gt;</code></p>

<p>Register: XrtcIntEn. </p>

</div>
</div>
<a id="gac915150ede3fb8aab0d68c1ed072e4f8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gac915150ede3fb8aab0d68c1ed072e4f8">&#9670;&nbsp;</a></span>XRTC_INT_MSK_OFFSET</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XRTC_INT_MSK_OFFSET&#160;&#160;&#160;0x00000024U</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xrtcpsu__hw_8h.html">xrtcpsu_hw.h</a>&gt;</code></p>

<p>Register: XrtcIntMsk. </p>

<p class="reference">Referenced by <a class="el" href="group__rtcpsu__v1__0.html#gad47ac1cadbbe8dd0e67588d1fc658cc2">XRtcPsu_GetCurrentTime()</a>, and <a class="el" href="group__rtcpsu__v1__0.html#ga01ca03d23194687c8026dc2f38da6ff7">XRtcPsu_InterruptHandler()</a>.</p>

</div>
</div>
<a id="ga5031f5d32d26c4887751966503470c83"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga5031f5d32d26c4887751966503470c83">&#9670;&nbsp;</a></span>XRTC_INT_STS_OFFSET</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XRTC_INT_STS_OFFSET&#160;&#160;&#160;0x00000020U</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xrtcpsu__hw_8h.html">xrtcpsu_hw.h</a>&gt;</code></p>

<p>Register: XrtcIntSts. </p>

<p class="reference">Referenced by <a class="el" href="group__rtcpsu__v1__0.html#ga01ca03d23194687c8026dc2f38da6ff7">XRtcPsu_InterruptHandler()</a>, <a class="el" href="group__rtcpsu__v1__0.html#ga75de01e02970e25ccbbeb1af33d0e808">XRtcPsu_IsAlarmEventGenerated()</a>, <a class="el" href="group__rtcpsu__v1__0.html#gafe9ec3849cca99b5d67f76ffafcc3ab2">XRtcPsu_IsSecondsEventGenerated()</a>, <a class="el" href="group__rtcpsu__v1__0.html#ga645920d3519722e8dc815d07db527367">XRtcPsu_SetInterruptMask()</a>, and <a class="el" href="group__rtcpsu__v1__0.html#ga71a08172e9403add8c6ec37842b49512">XRtcPsu_SetTime()</a>.</p>

</div>
</div>
<a id="gae8aad0b4ff0c6c094abd427ca68bfb72"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae8aad0b4ff0c6c094abd427ca68bfb72">&#9670;&nbsp;</a></span>XRTC_SET_TIME_RD_OFFSET</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XRTC_SET_TIME_RD_OFFSET&#160;&#160;&#160;0x00000004U</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xrtcpsu__hw_8h.html">xrtcpsu_hw.h</a>&gt;</code></p>

<p>Register: XrtcSetTimeRd. </p>

</div>
</div>
<a id="ga15fe16b0b19b172cc0b43af6c94698df"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga15fe16b0b19b172cc0b43af6c94698df">&#9670;&nbsp;</a></span>XRTC_SET_TIME_WR_OFFSET</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XRTC_SET_TIME_WR_OFFSET&#160;&#160;&#160;0x00000000U</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xrtcpsu__hw_8h.html">xrtcpsu_hw.h</a>&gt;</code></p>

<p>Register: XrtcSetTimeWr. </p>

</div>
</div>
<a id="ga1f92062d8d2cb1c7f0735b1ecd5cdb67"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga1f92062d8d2cb1c7f0735b1ecd5cdb67">&#9670;&nbsp;</a></span>XRTC_SFTY_CHK_OFFSET</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XRTC_SFTY_CHK_OFFSET&#160;&#160;&#160;0x00000050U</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xrtcpsu__hw_8h.html">xrtcpsu_hw.h</a>&gt;</code></p>

<p>Register: XrtcSftyChk. </p>

<p class="reference">Referenced by <a class="el" href="group__rtcpsu__v1__0.html#ga1c969c089715ea9a86cec887c09f9b92">XRtcPsu_SelfTest()</a>.</p>

</div>
</div>
<a id="gae7da0eb25a60f80358a637f7a2429216"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae7da0eb25a60f80358a637f7a2429216">&#9670;&nbsp;</a></span>XRTCPSU_CRYSTAL_OSC_EN</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XRTCPSU_CRYSTAL_OSC_EN&#160;&#160;&#160;(u32)1 &lt;&lt; XRTC_CTL_OSC_SHIFT</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xrtcpsu_8h.html">xrtcpsu.h</a>&gt;</code></p>

<p>Separate Mask for Crystal oscillator bit Enable. </p>

</div>
</div>
<a id="gad594fbf58a112754966cb4ed07a93fa2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gad594fbf58a112754966cb4ed07a93fa2">&#9670;&nbsp;</a></span>XRTCPSU_EVENT_ALARM_GEN</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XRTCPSU_EVENT_ALARM_GEN&#160;&#160;&#160;1U</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xrtcpsu_8h.html">xrtcpsu.h</a>&gt;</code></p>

<p>Alarm generated event. </p>

</div>
</div>
<a id="gaf214f251bc04f17da88cda3e7f91bd99"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf214f251bc04f17da88cda3e7f91bd99">&#9670;&nbsp;</a></span>XRTCPSU_EVENT_SECS_GEN</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XRTCPSU_EVENT_SECS_GEN&#160;&#160;&#160;2U</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xrtcpsu_8h.html">xrtcpsu.h</a>&gt;</code></p>

<p>A new second generated event. </p>

</div>
</div>
<a id="ga4464d5485ee8d997454a4eff3c497040"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga4464d5485ee8d997454a4eff3c497040">&#9670;&nbsp;</a></span>XRtcPsu_GetCalibration</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XRtcPsu_GetCalibration</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">InstancePtr</td><td>)</td>
          <td>&#160;&#160;&#160;<a class="el" href="group__rtcpsu__v1__0.html#gaccbbc47feabb330a937816bc347766ea">XRtcPsu_ReadReg</a>((InstancePtr)-&gt;RtcConfig.BaseAddr+<a class="el" href="group__rtcpsu__v1__0.html#ga1370c975fd33563789e4a6737599668a">XRTC_CALIB_RD_OFFSET</a>)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xrtcpsu_8h.html">xrtcpsu.h</a>&gt;</code></p>

<p>This macro returns the calibration value of RTC device. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_rtc_psu.html" title="The XRtcPsu driver instance data. ">XRtcPsu</a> instance.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Calibration value for RTC.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>C-Style signature: u32 <a class="el" href="group__rtcpsu__v1__0.html#ga4464d5485ee8d997454a4eff3c497040" title="This macro returns the calibration value of RTC device. ">XRtcPsu_GetCalibration(XRtcPsu *InstancePtr)</a> </dd></dl>

<p class="reference">Referenced by <a class="el" href="group__rtcpsu__v1__0.html#ga33633f27f8155128cc6815d883f9e22c">XRtcPsu_CalculateCalibration()</a>.</p>

</div>
</div>
<a id="gaa1d04a3a39aa70df47747733af96e1c7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa1d04a3a39aa70df47747733af96e1c7">&#9670;&nbsp;</a></span>XRtcPsu_GetLastSetTime</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XRtcPsu_GetLastSetTime</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">InstancePtr</td><td>)</td>
          <td>&#160;&#160;&#160;<a class="el" href="group__rtcpsu__v1__0.html#gaccbbc47feabb330a937816bc347766ea">XRtcPsu_ReadReg</a>((InstancePtr)-&gt;RtcConfig.BaseAddr + <a class="el" href="group__rtcpsu__v1__0.html#gae8aad0b4ff0c6c094abd427ca68bfb72">XRTC_SET_TIME_RD_OFFSET</a>)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xrtcpsu_8h.html">xrtcpsu.h</a>&gt;</code></p>

<p>This macro returns the last set time of RTC device. </p>
<p>Whenever a reset happens, the last set time will be zeroth day first sec.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_rtc_psu.html" title="The XRtcPsu driver instance data. ">XRtcPsu</a> instance.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The last set time in seconds.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>C-Style signature: u32 <a class="el" href="group__rtcpsu__v1__0.html#gaa1d04a3a39aa70df47747733af96e1c7" title="This macro returns the last set time of RTC device. ">XRtcPsu_GetLastSetTime(XRtcPsu *InstancePtr)</a> </dd></dl>

<p class="reference">Referenced by <a class="el" href="group__rtcpsu__v1__0.html#ga33633f27f8155128cc6815d883f9e22c">XRtcPsu_CalculateCalibration()</a>.</p>

</div>
</div>
<a id="ga96ee0ca8660637a0b1bdd5feacdf9ac3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga96ee0ca8660637a0b1bdd5feacdf9ac3">&#9670;&nbsp;</a></span>XRtcPsu_GetSafetyCheck</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XRtcPsu_GetSafetyCheck</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">InstancePtr</td><td>)</td>
          <td>&#160;&#160;&#160;<a class="el" href="group__rtcpsu__v1__0.html#gaccbbc47feabb330a937816bc347766ea">XRtcPsu_ReadReg</a>((InstancePtr)-&gt;RtcConfig.BaseAddr+<a class="el" href="group__rtcpsu__v1__0.html#ga1f92062d8d2cb1c7f0735b1ecd5cdb67">XRTC_SFTY_CHK_OFFSET</a>)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xrtcpsu_8h.html">xrtcpsu.h</a>&gt;</code></p>

<p>This macro returns the safety check register value of RTC device. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_rtc_psu.html" title="The XRtcPsu driver instance data. ">XRtcPsu</a> instance.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Safety check register value.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>C-Style signature: u32 <a class="el" href="group__rtcpsu__v1__0.html#ga96ee0ca8660637a0b1bdd5feacdf9ac3" title="This macro returns the safety check register value of RTC device. ">XRtcPsu_GetSafetyCheck(XRtcPsu *InstancePtr)</a> </dd></dl>

</div>
</div>
<a id="gac30a01306c1b613d66fb25777962ff9f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gac30a01306c1b613d66fb25777962ff9f">&#9670;&nbsp;</a></span>XRtcPsu_ReadCurrentTime</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XRtcPsu_ReadCurrentTime</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">InstancePtr</td><td>)</td>
          <td>&#160;&#160;&#160;<a class="el" href="group__rtcpsu__v1__0.html#gaccbbc47feabb330a937816bc347766ea">XRtcPsu_ReadReg</a>((InstancePtr)-&gt;RtcConfig.BaseAddr+<a class="el" href="group__rtcpsu__v1__0.html#ga7fa52cd698601011816bcb3a78cabc6a">XRTC_CUR_TIME_OFFSET</a>)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xrtcpsu_8h.html">xrtcpsu.h</a>&gt;</code></p>

<p>This macro returns the current time of RTC device. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_rtc_psu.html" title="The XRtcPsu driver instance data. ">XRtcPsu</a> instance.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Current Time. This current time will be in seconds.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>C-Style signature: u32 <a class="el" href="group__rtcpsu__v1__0.html#gac30a01306c1b613d66fb25777962ff9f" title="This macro returns the current time of RTC device. ">XRtcPsu_ReadCurrentTime(XRtcPsu *InstancePtr)</a> </dd></dl>

</div>
</div>
<a id="gaccbbc47feabb330a937816bc347766ea"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaccbbc47feabb330a937816bc347766ea">&#9670;&nbsp;</a></span>XRtcPsu_ReadReg</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XRtcPsu_ReadReg</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">RegisterAddr</td><td>)</td>
          <td>&#160;&#160;&#160;Xil_In32(RegisterAddr)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xrtcpsu__hw_8h.html">xrtcpsu_hw.h</a>&gt;</code></p>

<p>This macro reads the given register. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">RegisterAddr</td><td>is the register address in the address space of the RTC device.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The 32-bit value of the register</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

<p class="reference">Referenced by <a class="el" href="group__rtcpsu__v1__0.html#gad47ac1cadbbe8dd0e67588d1fc658cc2">XRtcPsu_GetCurrentTime()</a>, <a class="el" href="group__rtcpsu__v1__0.html#ga01ca03d23194687c8026dc2f38da6ff7">XRtcPsu_InterruptHandler()</a>, <a class="el" href="group__rtcpsu__v1__0.html#ga75de01e02970e25ccbbeb1af33d0e808">XRtcPsu_IsAlarmEventGenerated()</a>, and <a class="el" href="group__rtcpsu__v1__0.html#gafe9ec3849cca99b5d67f76ffafcc3ab2">XRtcPsu_IsSecondsEventGenerated()</a>.</p>

</div>
</div>
<a id="gaf491d4fa3c779586da882c0c3e75c80e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf491d4fa3c779586da882c0c3e75c80e">&#9670;&nbsp;</a></span>XRtcPsu_ResetAlarm</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XRtcPsu_ResetAlarm</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">InstancePtr</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xrtcpsu_8h.html">xrtcpsu.h</a>&gt;</code></p>
<b>Value:</b><div class="fragment"><div class="line"><a class="code" href="group__rtcpsu__v1__0.html#gac80374611ede3fc00461df6aaff75028">XRtcPsu_WriteReg</a>((InstancePtr)-&gt;RtcConfig.BaseAddr + \</div><div class="line">                                <a class="code" href="group__rtcpsu__v1__0.html#gaefe187edd9e6057a21bed63b21980824">XRTC_ALRM_OFFSET</a>,XRTC_ALRM_RSTVAL)</div><div class="ttc" id="group__rtcpsu__v1__0_html_gaefe187edd9e6057a21bed63b21980824"><div class="ttname"><a href="group__rtcpsu__v1__0.html#gaefe187edd9e6057a21bed63b21980824">XRTC_ALRM_OFFSET</a></div><div class="ttdeci">#define XRTC_ALRM_OFFSET</div><div class="ttdoc">Register: XrtcAlrm. </div><div class="ttdef"><b>Definition:</b> xrtcpsu_hw.h:165</div></div>
<div class="ttc" id="group__rtcpsu__v1__0_html_gac80374611ede3fc00461df6aaff75028"><div class="ttname"><a href="group__rtcpsu__v1__0.html#gac80374611ede3fc00461df6aaff75028">XRtcPsu_WriteReg</a></div><div class="ttdeci">#define XRtcPsu_WriteReg(RegisterAddr, Data)</div><div class="ttdoc">This macro writes the given register. </div><div class="ttdef"><b>Definition:</b> xrtcpsu_hw.h:355</div></div>
</div><!-- fragment -->
<p>This macro resets the alarm register. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_rtc_psu.html" title="The XRtcPsu driver instance data. ">XRtcPsu</a> instance.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>C-Style signature: u32 <a class="el" href="group__rtcpsu__v1__0.html#gaf491d4fa3c779586da882c0c3e75c80e" title="This macro resets the alarm register. ">XRtcPsu_ResetAlarm(XRtcPsu *InstancePtr)</a> </dd></dl>

</div>
</div>
<a id="gab9fa0e5d7c9536a238863272a1e21bfa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gab9fa0e5d7c9536a238863272a1e21bfa">&#9670;&nbsp;</a></span>XRtcPsu_RoundOff</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XRtcPsu_RoundOff</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">Number</td><td>)</td>
          <td>&#160;&#160;&#160;(u32)(((Number) &lt; (u32)0) ? ((Number) - (u32)0.5) : ((Number) + (u32)0.5))</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xrtcpsu_8h.html">xrtcpsu.h</a>&gt;</code></p>

<p>This macro rounds off the given number. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">Number</td><td>is the one that needs to be rounded off..</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The rounded off value of the input number.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>C-Style signature: u32 <a class="el" href="group__rtcpsu__v1__0.html#gab9fa0e5d7c9536a238863272a1e21bfa" title="This macro rounds off the given number. ">XRtcPsu_RoundOff(float Number)</a> </dd></dl>

</div>
</div>
<a id="gaa4a4dde16482fe7d440b14d0ce315236"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa4a4dde16482fe7d440b14d0ce315236">&#9670;&nbsp;</a></span>XRtcPsu_SetControlRegister</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XRtcPsu_SetControlRegister</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">InstancePtr, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">Value&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xrtcpsu_8h.html">xrtcpsu.h</a>&gt;</code></p>
<b>Value:</b><div class="fragment"><div class="line"><a class="code" href="group__rtcpsu__v1__0.html#gac80374611ede3fc00461df6aaff75028">XRtcPsu_WriteReg</a>((InstancePtr)-&gt;RtcConfig.BaseAddr + \</div><div class="line">                        <a class="code" href="group__rtcpsu__v1__0.html#ga0fc893db4a633de94bdfc6f4f59df62f">XRTC_CTL_OFFSET</a>,(Value))</div><div class="ttc" id="group__rtcpsu__v1__0_html_ga0fc893db4a633de94bdfc6f4f59df62f"><div class="ttname"><a href="group__rtcpsu__v1__0.html#ga0fc893db4a633de94bdfc6f4f59df62f">XRTC_CTL_OFFSET</a></div><div class="ttdeci">#define XRTC_CTL_OFFSET</div><div class="ttdoc">Register: XrtcCtl. </div><div class="ttdef"><b>Definition:</b> xrtcpsu_hw.h:284</div></div>
<div class="ttc" id="group__rtcpsu__v1__0_html_gac80374611ede3fc00461df6aaff75028"><div class="ttname"><a href="group__rtcpsu__v1__0.html#gac80374611ede3fc00461df6aaff75028">XRtcPsu_WriteReg</a></div><div class="ttdeci">#define XRtcPsu_WriteReg(RegisterAddr, Data)</div><div class="ttdoc">This macro writes the given register. </div><div class="ttdef"><b>Definition:</b> xrtcpsu_hw.h:355</div></div>
</div><!-- fragment -->
<p>This macro sets the control register value of RTC device. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_rtc_psu.html" title="The XRtcPsu driver instance data. ">XRtcPsu</a> instance. </td></tr>
    <tr><td class="paramname">Value</td><td>is the desired control register value for RTC.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>C-Style signature: void <a class="el" href="group__rtcpsu__v1__0.html#gaa4a4dde16482fe7d440b14d0ce315236" title="This macro sets the control register value of RTC device. ">XRtcPsu_SetControlRegister(XRtcPsu *InstancePtr, u32 Value)</a> </dd></dl>

</div>
</div>
<a id="ga01aef4471440e437100dcefd0cf31c47"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga01aef4471440e437100dcefd0cf31c47">&#9670;&nbsp;</a></span>XRtcPsu_SetSafetyCheck</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XRtcPsu_SetSafetyCheck</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">InstancePtr, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">Value&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xrtcpsu_8h.html">xrtcpsu.h</a>&gt;</code></p>
<b>Value:</b><div class="fragment"><div class="line"><a class="code" href="group__rtcpsu__v1__0.html#gac80374611ede3fc00461df6aaff75028">XRtcPsu_WriteReg</a>((InstancePtr)-&gt;RtcConfig.BaseAddr + \</div><div class="line">                        <a class="code" href="group__rtcpsu__v1__0.html#ga1f92062d8d2cb1c7f0735b1ecd5cdb67">XRTC_SFTY_CHK_OFFSET</a>,(Value))</div><div class="ttc" id="group__rtcpsu__v1__0_html_gac80374611ede3fc00461df6aaff75028"><div class="ttname"><a href="group__rtcpsu__v1__0.html#gac80374611ede3fc00461df6aaff75028">XRtcPsu_WriteReg</a></div><div class="ttdeci">#define XRtcPsu_WriteReg(RegisterAddr, Data)</div><div class="ttdoc">This macro writes the given register. </div><div class="ttdef"><b>Definition:</b> xrtcpsu_hw.h:355</div></div>
<div class="ttc" id="group__rtcpsu__v1__0_html_ga1f92062d8d2cb1c7f0735b1ecd5cdb67"><div class="ttname"><a href="group__rtcpsu__v1__0.html#ga1f92062d8d2cb1c7f0735b1ecd5cdb67">XRTC_SFTY_CHK_OFFSET</a></div><div class="ttdeci">#define XRTC_SFTY_CHK_OFFSET</div><div class="ttdoc">Register: XrtcSftyChk. </div><div class="ttdef"><b>Definition:</b> xrtcpsu_hw.h:305</div></div>
</div><!-- fragment -->
<p>This macro sets the safety check register value of RTC device. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_rtc_psu.html" title="The XRtcPsu driver instance data. ">XRtcPsu</a> instance. </td></tr>
    <tr><td class="paramname">Value</td><td>is a safety check value to be written in register.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>C-Style signature: void <a class="el" href="group__rtcpsu__v1__0.html#ga01aef4471440e437100dcefd0cf31c47" title="This macro sets the safety check register value of RTC device. ">XRtcPsu_SetSafetyCheck(XRtcPsu *InstancePtr, u32 Value)</a> </dd></dl>

</div>
</div>
<a id="gac80374611ede3fc00461df6aaff75028"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gac80374611ede3fc00461df6aaff75028">&#9670;&nbsp;</a></span>XRtcPsu_WriteReg</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XRtcPsu_WriteReg</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">RegisterAddr, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">Data&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;Xil_Out32(RegisterAddr, (u32)(Data))</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xrtcpsu__hw_8h.html">xrtcpsu_hw.h</a>&gt;</code></p>

<p>This macro writes the given register. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">RegisterAddr</td><td>is the register address in the address space of the RTC device. </td></tr>
    <tr><td class="paramname">Data</td><td>is the 32-bit value to write to the register.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

<p class="reference">Referenced by <a class="el" href="group__rtcpsu__v1__0.html#gaefced00316539320411829b4d701fe3c">XRtcPsu_ClearInterruptMask()</a>, <a class="el" href="group__rtcpsu__v1__0.html#ga01ca03d23194687c8026dc2f38da6ff7">XRtcPsu_InterruptHandler()</a>, <a class="el" href="group__rtcpsu__v1__0.html#ga1c969c089715ea9a86cec887c09f9b92">XRtcPsu_SelfTest()</a>, <a class="el" href="group__rtcpsu__v1__0.html#ga201537801ac896c73018a8719e8637d8">XRtcPsu_SetAlarm()</a>, <a class="el" href="group__rtcpsu__v1__0.html#ga645920d3519722e8dc815d07db527367">XRtcPsu_SetInterruptMask()</a>, and <a class="el" href="group__rtcpsu__v1__0.html#ga71a08172e9403add8c6ec37842b49512">XRtcPsu_SetTime()</a>.</p>

</div>
</div>
<a id="ga2d6afae471b9ad6df9d1ca0ae7c7d16c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga2d6afae471b9ad6df9d1ca0ae7c7d16c">&#9670;&nbsp;</a></span>XRtcPsu_WriteSetTime</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XRtcPsu_WriteSetTime</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">InstancePtr, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">Time&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xrtcpsu_8h.html">xrtcpsu.h</a>&gt;</code></p>
<b>Value:</b><div class="fragment"><div class="line"><a class="code" href="group__rtcpsu__v1__0.html#gac80374611ede3fc00461df6aaff75028">XRtcPsu_WriteReg</a>(((InstancePtr)-&gt;RtcConfig.BaseAddr + \</div><div class="line">                                <a class="code" href="group__rtcpsu__v1__0.html#ga15fe16b0b19b172cc0b43af6c94698df">XRTC_SET_TIME_WR_OFFSET</a>),(Time))</div><div class="ttc" id="group__rtcpsu__v1__0_html_gac80374611ede3fc00461df6aaff75028"><div class="ttname"><a href="group__rtcpsu__v1__0.html#gac80374611ede3fc00461df6aaff75028">XRtcPsu_WriteReg</a></div><div class="ttdeci">#define XRtcPsu_WriteReg(RegisterAddr, Data)</div><div class="ttdoc">This macro writes the given register. </div><div class="ttdef"><b>Definition:</b> xrtcpsu_hw.h:355</div></div>
<div class="ttc" id="group__rtcpsu__v1__0_html_ga15fe16b0b19b172cc0b43af6c94698df"><div class="ttname"><a href="group__rtcpsu__v1__0.html#ga15fe16b0b19b172cc0b43af6c94698df">XRTC_SET_TIME_WR_OFFSET</a></div><div class="ttdeci">#define XRTC_SET_TIME_WR_OFFSET</div><div class="ttdoc">Register: XrtcSetTimeWr. </div><div class="ttdef"><b>Definition:</b> xrtcpsu_hw.h:79</div></div>
</div><!-- fragment -->
<p>This macro updates the current time of RTC device. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_rtc_psu.html" title="The XRtcPsu driver instance data. ">XRtcPsu</a> instance. </td></tr>
    <tr><td class="paramname">Time</td><td>is the desired time for RTC in seconds.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>C-Style signature: void <a class="el" href="group__rtcpsu__v1__0.html#ga71a08172e9403add8c6ec37842b49512" title="This function sets the RTC time by writing into rtc write register. ">XRtcPsu_SetTime(XRtcPsu *InstancePtr, u32 Time)</a> </dd></dl>

</div>
</div>
<h2 class="groupheader">Typedef Documentation</h2>
<a id="ga8ca73beea761e79bd8faec4fa86f0d17"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga8ca73beea761e79bd8faec4fa86f0d17">&#9670;&nbsp;</a></span>XRtcPsu_Handler</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef void(* XRtcPsu_Handler) (void *CallBackRef, u32 Event)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xrtcpsu_8h.html">xrtcpsu.h</a>&gt;</code></p>

<p>This data type defines a handler that an application defines to communicate with interrupt system to retrieve state information about an application. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">CallBackRef</td><td>is a callback reference passed in by the upper layer when setting the handler, and is passed back to the upper layer when the handler is called. It is used to find the device driver instance. </td></tr>
    <tr><td class="paramname">Event</td><td>contains one of the event constants indicating events that have occurred. </td></tr>
    <tr><td class="paramname">EventData</td><td>contains the number of bytes sent or received at the time of the call for send and receive events and contains the modem status for modem events. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="ga33633f27f8155128cc6815d883f9e22c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga33633f27f8155128cc6815d883f9e22c">&#9670;&nbsp;</a></span>XRtcPsu_CalculateCalibration()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XRtcPsu_CalculateCalibration </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_rtc_psu.html">XRtcPsu</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u32&#160;</td>
          <td class="paramname"><em>TimeReal</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u32&#160;</td>
          <td class="paramname"><em>CrystalOscFreq</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xrtcpsu_8c.html">xrtcpsu.c</a>&gt;</code></p>

<p>This function calculates the calibration value depending on the actual realworld time and also helps in deriving new calibration value if the user wishes to change his oscillator frequency.TimeReal is generally the internet time with EPOCH time as reference i.e.,1/1/1970 1st second. </p>
<p>But this RTC driver assumes start time from 1/1/2000 1st second. Hence,if the user maps the internet time InternetTimeInSecs, then he has to use XRtcPsu_SecToDateTime(InternetTimeInSecs,&amp;InternetTime), TimeReal = XRtcPsu_DateTimeToSec(InternetTime) consecutively to arrive at TimeReal value.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_rtc_psu.html" title="The XRtcPsu driver instance data. ">XRtcPsu</a> instance. </td></tr>
    <tr><td class="paramname">TimeReal</td><td>is the actual realworld time generally an network time / Internet time in seconds.</td></tr>
    <tr><td class="paramname">CrystalOscFreq</td><td>is the Oscillator new frequency. Say, If the user is going with the typical 32768Hz, then he inputs the same frequency value.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>After Calculating the calibration register, user / application has to call again CfgInitialize API to bring the new calibration into effect. </dd></dl>

<p class="reference">References <a class="el" href="group__rtcpsu__v1__0.html#ga4464d5485ee8d997454a4eff3c497040">XRtcPsu_GetCalibration</a>, <a class="el" href="group__rtcpsu__v1__0.html#gad47ac1cadbbe8dd0e67588d1fc658cc2">XRtcPsu_GetCurrentTime()</a>, and <a class="el" href="group__rtcpsu__v1__0.html#gaa1d04a3a39aa70df47747733af96e1c7">XRtcPsu_GetLastSetTime</a>.</p>

</div>
</div>
<a id="gaefced00316539320411829b4d701fe3c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaefced00316539320411829b4d701fe3c">&#9670;&nbsp;</a></span>XRtcPsu_ClearInterruptMask()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XRtcPsu_ClearInterruptMask </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_rtc_psu.html">XRtcPsu</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u32&#160;</td>
          <td class="paramname"><em>Mask</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xrtcpsu_8h.html">xrtcpsu.h</a>&gt;</code></p>

<p>This function clears the interrupt mask. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_rtc_psu.html" title="The XRtcPsu driver instance data. ">XRtcPsu</a> instance </td></tr>
    <tr><td class="paramname">Mask</td><td>contains the interrupts to be disabled. A '1' enables an interrupt, and a '0' disables.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

<p class="reference">References <a class="el" href="struct_x_rtc_psu___config.html#a74e22cff54d15a05c5cc9bc91f90fdfe">XRtcPsu_Config::BaseAddr</a>, <a class="el" href="struct_x_rtc_psu.html#a510539ab390fac74a4e6f7d8a837e20c">XRtcPsu::RtcConfig</a>, <a class="el" href="group__rtcpsu__v1__0.html#gac41e797cd2c6162d086c237426eafa9e">XRTC_INT_DIS_OFFSET</a>, and <a class="el" href="group__rtcpsu__v1__0.html#gac80374611ede3fc00461df6aaff75028">XRtcPsu_WriteReg</a>.</p>

</div>
</div>
<a id="ga15d97f88e65f27121f56f06480717824"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga15d97f88e65f27121f56f06480717824">&#9670;&nbsp;</a></span>XRtcPsu_DateTimeToSec()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">u32 XRtcPsu_DateTimeToSec </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_rtc_psu___d_t.html">XRtcPsu_DT</a> *&#160;</td>
          <td class="paramname"><em>dt</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xrtcpsu_8c.html">xrtcpsu.c</a>&gt;</code></p>

<p>This function translates time in YEAR:MON:DAY HR:MIN:SEC format to seconds. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dt</td><td>is a pointer to a DatetTime format structure variable of time that has to be shown in seconds.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Seconds value of provided in dt time.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

</div>
</div>
<a id="gad47ac1cadbbe8dd0e67588d1fc658cc2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gad47ac1cadbbe8dd0e67588d1fc658cc2">&#9670;&nbsp;</a></span>XRtcPsu_GetCurrentTime()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">u32 XRtcPsu_GetCurrentTime </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_rtc_psu.html">XRtcPsu</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xrtcpsu_8c.html">xrtcpsu.c</a>&gt;</code></p>

<p>This function gets the current RTC time. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_rtc_psu.html" title="The XRtcPsu driver instance data. ">XRtcPsu</a> instance.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>RTC Current time.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

<p class="reference">References <a class="el" href="struct_x_rtc_psu___config.html#a74e22cff54d15a05c5cc9bc91f90fdfe">XRtcPsu_Config::BaseAddr</a>, <a class="el" href="struct_x_rtc_psu.html#a510539ab390fac74a4e6f7d8a837e20c">XRtcPsu::RtcConfig</a>, <a class="el" href="group__rtcpsu__v1__0.html#gac915150ede3fb8aab0d68c1ed072e4f8">XRTC_INT_MSK_OFFSET</a>, and <a class="el" href="group__rtcpsu__v1__0.html#gaccbbc47feabb330a937816bc347766ea">XRtcPsu_ReadReg</a>.</p>

<p class="reference">Referenced by <a class="el" href="group__rtcpsu__v1__0.html#ga33633f27f8155128cc6815d883f9e22c">XRtcPsu_CalculateCalibration()</a>, and <a class="el" href="group__rtcpsu__v1__0.html#ga201537801ac896c73018a8719e8637d8">XRtcPsu_SetAlarm()</a>.</p>

</div>
</div>
<a id="ga01ca03d23194687c8026dc2f38da6ff7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga01ca03d23194687c8026dc2f38da6ff7">&#9670;&nbsp;</a></span>XRtcPsu_InterruptHandler()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XRtcPsu_InterruptHandler </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_rtc_psu.html">XRtcPsu</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xrtcpsu_8h.html">xrtcpsu.h</a>&gt;</code></p>

<p>This function is the interrupt handler for the driver. </p>
<p>It must be connected to an interrupt system by the application such that it can be called when an interrupt occurs.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>contains a pointer to the driver instance</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

<p class="reference">References <a class="el" href="struct_x_rtc_psu___config.html#a74e22cff54d15a05c5cc9bc91f90fdfe">XRtcPsu_Config::BaseAddr</a>, <a class="el" href="struct_x_rtc_psu.html#a944bb7e04321463dcfde5e2eac03d271">XRtcPsu::IsReady</a>, <a class="el" href="struct_x_rtc_psu.html#a510539ab390fac74a4e6f7d8a837e20c">XRtcPsu::RtcConfig</a>, <a class="el" href="group__rtcpsu__v1__0.html#gac915150ede3fb8aab0d68c1ed072e4f8">XRTC_INT_MSK_OFFSET</a>, <a class="el" href="group__rtcpsu__v1__0.html#ga5031f5d32d26c4887751966503470c83">XRTC_INT_STS_OFFSET</a>, <a class="el" href="group__rtcpsu__v1__0.html#gaccbbc47feabb330a937816bc347766ea">XRtcPsu_ReadReg</a>, and <a class="el" href="group__rtcpsu__v1__0.html#gac80374611ede3fc00461df6aaff75028">XRtcPsu_WriteReg</a>.</p>

</div>
</div>
<a id="ga75de01e02970e25ccbbeb1af33d0e808"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga75de01e02970e25ccbbeb1af33d0e808">&#9670;&nbsp;</a></span>XRtcPsu_IsAlarmEventGenerated()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">u32 XRtcPsu_IsAlarmEventGenerated </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_rtc_psu.html">XRtcPsu</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xrtcpsu_8c.html">xrtcpsu.c</a>&gt;</code></p>

<p>This function returns the alarm event status by reading interrupt status register. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_rtc_psu.html" title="The XRtcPsu driver instance data. ">XRtcPsu</a> instance.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns 1 if the alarm event is generated.Else 0.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>This API is used in polled mode operation of RTC. This also clears interrupt status alarm bit. </dd></dl>

<p class="reference">References <a class="el" href="struct_x_rtc_psu___config.html#a74e22cff54d15a05c5cc9bc91f90fdfe">XRtcPsu_Config::BaseAddr</a>, <a class="el" href="struct_x_rtc_psu.html#a510539ab390fac74a4e6f7d8a837e20c">XRtcPsu::RtcConfig</a>, <a class="el" href="group__rtcpsu__v1__0.html#ga5031f5d32d26c4887751966503470c83">XRTC_INT_STS_OFFSET</a>, and <a class="el" href="group__rtcpsu__v1__0.html#gaccbbc47feabb330a937816bc347766ea">XRtcPsu_ReadReg</a>.</p>

</div>
</div>
<a id="gafe9ec3849cca99b5d67f76ffafcc3ab2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gafe9ec3849cca99b5d67f76ffafcc3ab2">&#9670;&nbsp;</a></span>XRtcPsu_IsSecondsEventGenerated()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">u32 XRtcPsu_IsSecondsEventGenerated </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_rtc_psu.html">XRtcPsu</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xrtcpsu_8c.html">xrtcpsu.c</a>&gt;</code></p>

<p>This function returns the seconds event status by reading interrupt status register. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_rtc_psu.html" title="The XRtcPsu driver instance data. ">XRtcPsu</a> instance.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns 1 if a new second event is generated.Else 0..</dd></dl>
<dl class="section note"><dt>Note</dt><dd>This API is used in polled mode operation of RTC. This also clears interrupt status seconds bit. </dd></dl>

<p class="reference">References <a class="el" href="struct_x_rtc_psu___config.html#a74e22cff54d15a05c5cc9bc91f90fdfe">XRtcPsu_Config::BaseAddr</a>, <a class="el" href="struct_x_rtc_psu.html#a510539ab390fac74a4e6f7d8a837e20c">XRtcPsu::RtcConfig</a>, <a class="el" href="group__rtcpsu__v1__0.html#ga5031f5d32d26c4887751966503470c83">XRTC_INT_STS_OFFSET</a>, and <a class="el" href="group__rtcpsu__v1__0.html#gaccbbc47feabb330a937816bc347766ea">XRtcPsu_ReadReg</a>.</p>

</div>
</div>
<a id="ga665fbe64a08c5b13b838ab7b69188e3e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga665fbe64a08c5b13b838ab7b69188e3e">&#9670;&nbsp;</a></span>XRtcPsu_LookupConfig()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="struct_x_rtc_psu___config.html">XRtcPsu_Config</a> * XRtcPsu_LookupConfig </td>
          <td>(</td>
          <td class="paramtype">u16&#160;</td>
          <td class="paramname"><em>DeviceId</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xrtcpsu_8h.html">xrtcpsu.h</a>&gt;</code></p>

<p>This function looks for the device configuration based on the unique device ID. </p>
<p>The table XRtcPsu_ConfigTable[] contains the configuration information for each device in the system.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">DeviceId</td><td>is the unique device ID of the device being looked up.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A pointer to the configuration table entry corresponding to the given device ID, or NULL if no match is found.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

<p class="reference">Referenced by <a class="el" href="xrtcpsu__set__calibration__example_8c.html#a46307619e33ba7630c1d0f860689e0ec">RtcPsuSetCalibrationExample()</a>, and <a class="el" href="xrtcpsu__set__time__example_8c.html#a19053dce0a6a8d1662bb6e3a2692af28">RtcPsuSetTimeExample()</a>.</p>

</div>
</div>
<a id="gaac3d95ea1a75533a1fd3cd95d62a9914"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaac3d95ea1a75533a1fd3cd95d62a9914">&#9670;&nbsp;</a></span>XRtcPsu_SecToDateTime()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XRtcPsu_SecToDateTime </td>
          <td>(</td>
          <td class="paramtype">u32&#160;</td>
          <td class="paramname"><em>Seconds</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_x_rtc_psu___d_t.html">XRtcPsu_DT</a> *&#160;</td>
          <td class="paramname"><em>dt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xrtcpsu_8c.html">xrtcpsu.c</a>&gt;</code></p>

<p>This function translates time in seconds to a YEAR:MON:DAY HR:MIN:SEC format and saves it in the DT structure variable. </p>
<p>It also reports the weekday.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">Seconds</td><td>is the time value that has to be shown in DateTime format. </td></tr>
    <tr><td class="paramname">dt</td><td>is the DateTime format variable that stores the translated time.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>This API supports this century i.e., 2000 - 2099 years only. </dd></dl>

</div>
</div>
<a id="ga1c969c089715ea9a86cec887c09f9b92"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga1c969c089715ea9a86cec887c09f9b92">&#9670;&nbsp;</a></span>XRtcPsu_SelfTest()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">s32 XRtcPsu_SelfTest </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_rtc_psu.html">XRtcPsu</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xrtcpsu_8h.html">xrtcpsu.h</a>&gt;</code></p>

<p>This function runs a self-test on the driver and hardware device. </p>
<p>This self test writes reset value into safety check register and read backs the same. If mismatch offers, returns the failure.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_rtc_psu.html" title="The XRtcPsu driver instance data. ">XRtcPsu</a> instance</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><ul>
<li>XST_SUCCESS if the test was successful</li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd></dd></dl>
<p>This function can hang if the hardware is not functioning properly. </p>

<p class="reference">References <a class="el" href="struct_x_rtc_psu___config.html#a74e22cff54d15a05c5cc9bc91f90fdfe">XRtcPsu_Config::BaseAddr</a>, <a class="el" href="struct_x_rtc_psu.html#a944bb7e04321463dcfde5e2eac03d271">XRtcPsu::IsReady</a>, <a class="el" href="struct_x_rtc_psu.html#a510539ab390fac74a4e6f7d8a837e20c">XRtcPsu::RtcConfig</a>, <a class="el" href="group__rtcpsu__v1__0.html#ga1f92062d8d2cb1c7f0735b1ecd5cdb67">XRTC_SFTY_CHK_OFFSET</a>, and <a class="el" href="group__rtcpsu__v1__0.html#gac80374611ede3fc00461df6aaff75028">XRtcPsu_WriteReg</a>.</p>

</div>
</div>
<a id="ga201537801ac896c73018a8719e8637d8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga201537801ac896c73018a8719e8637d8">&#9670;&nbsp;</a></span>XRtcPsu_SetAlarm()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XRtcPsu_SetAlarm </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_rtc_psu.html">XRtcPsu</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u32&#160;</td>
          <td class="paramname"><em>Alarm</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u32&#160;</td>
          <td class="paramname"><em>Periodic</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xrtcpsu_8c.html">xrtcpsu.c</a>&gt;</code></p>

<p>This function sets the alarm value of RTC device. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_rtc_psu.html" title="The XRtcPsu driver instance data. ">XRtcPsu</a> instance </td></tr>
    <tr><td class="paramname">Alarm</td><td>is the desired alarm time for RTC. </td></tr>
    <tr><td class="paramname">Periodic</td><td>says whether the alarm need to set at periodic Intervals or a one-time alarm.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

<p class="reference">References <a class="el" href="struct_x_rtc_psu___config.html#a74e22cff54d15a05c5cc9bc91f90fdfe">XRtcPsu_Config::BaseAddr</a>, <a class="el" href="struct_x_rtc_psu.html#a944bb7e04321463dcfde5e2eac03d271">XRtcPsu::IsReady</a>, <a class="el" href="struct_x_rtc_psu.html#a510539ab390fac74a4e6f7d8a837e20c">XRtcPsu::RtcConfig</a>, <a class="el" href="group__rtcpsu__v1__0.html#gaefe187edd9e6057a21bed63b21980824">XRTC_ALRM_OFFSET</a>, <a class="el" href="group__rtcpsu__v1__0.html#gad47ac1cadbbe8dd0e67588d1fc658cc2">XRtcPsu_GetCurrentTime()</a>, and <a class="el" href="group__rtcpsu__v1__0.html#gac80374611ede3fc00461df6aaff75028">XRtcPsu_WriteReg</a>.</p>

</div>
</div>
<a id="ga6c782a1e080607664a88ae6dcb994c30"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga6c782a1e080607664a88ae6dcb994c30">&#9670;&nbsp;</a></span>XRtcPsu_SetHandler()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XRtcPsu_SetHandler </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_rtc_psu.html">XRtcPsu</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__rtcpsu__v1__0.html#ga8ca73beea761e79bd8faec4fa86f0d17">XRtcPsu_Handler</a>&#160;</td>
          <td class="paramname"><em>FuncPtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>CallBackRef</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xrtcpsu_8h.html">xrtcpsu.h</a>&gt;</code></p>

<p>This function sets the handler that will be called when an event (interrupt) occurs that needs application's attention. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_rtc_psu.html" title="The XRtcPsu driver instance data. ">XRtcPsu</a> instance </td></tr>
    <tr><td class="paramname">FuncPtr</td><td>is the pointer to the callback function. </td></tr>
    <tr><td class="paramname">CallBackRef</td><td>is the upper layer callback reference passed back when the callback function is invoked.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None.</dd></dl>
<dl class="section note"><dt>Note</dt><dd></dd></dl>
<p>There is no assert on the CallBackRef since the driver doesn't know what it is (nor should it) </p>

<p class="reference">References <a class="el" href="struct_x_rtc_psu.html#a97e33e1583f9887c05e7af23d633e4b5">XRtcPsu::CallBackRef</a>, and <a class="el" href="struct_x_rtc_psu.html#a944bb7e04321463dcfde5e2eac03d271">XRtcPsu::IsReady</a>.</p>

</div>
</div>
<a id="ga645920d3519722e8dc815d07db527367"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga645920d3519722e8dc815d07db527367">&#9670;&nbsp;</a></span>XRtcPsu_SetInterruptMask()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XRtcPsu_SetInterruptMask </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_rtc_psu.html">XRtcPsu</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u32&#160;</td>
          <td class="paramname"><em>Mask</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xrtcpsu_8h.html">xrtcpsu.h</a>&gt;</code></p>

<p>This function sets the interrupt mask. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_rtc_psu.html" title="The XRtcPsu driver instance data. ">XRtcPsu</a> instance </td></tr>
    <tr><td class="paramname">Mask</td><td>contains the interrupts to be enabled. A '1' enables an interupt, and a '0' disables.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

<p class="reference">References <a class="el" href="struct_x_rtc_psu___config.html#a74e22cff54d15a05c5cc9bc91f90fdfe">XRtcPsu_Config::BaseAddr</a>, <a class="el" href="struct_x_rtc_psu.html#a510539ab390fac74a4e6f7d8a837e20c">XRtcPsu::RtcConfig</a>, <a class="el" href="group__rtcpsu__v1__0.html#ga5031f5d32d26c4887751966503470c83">XRTC_INT_STS_OFFSET</a>, and <a class="el" href="group__rtcpsu__v1__0.html#gac80374611ede3fc00461df6aaff75028">XRtcPsu_WriteReg</a>.</p>

</div>
</div>
<a id="ga71a08172e9403add8c6ec37842b49512"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga71a08172e9403add8c6ec37842b49512">&#9670;&nbsp;</a></span>XRtcPsu_SetTime()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XRtcPsu_SetTime </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_rtc_psu.html">XRtcPsu</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u32&#160;</td>
          <td class="paramname"><em>Time</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xrtcpsu_8c.html">xrtcpsu.c</a>&gt;</code></p>

<p>This function sets the RTC time by writing into rtc write register. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_rtc_psu.html" title="The XRtcPsu driver instance data. ">XRtcPsu</a> instance. </td></tr>
    <tr><td class="paramname">Time</td><td>that should be updated into RTC write register.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

<p class="reference">References <a class="el" href="struct_x_rtc_psu___config.html#a74e22cff54d15a05c5cc9bc91f90fdfe">XRtcPsu_Config::BaseAddr</a>, <a class="el" href="struct_x_rtc_psu.html#a510539ab390fac74a4e6f7d8a837e20c">XRtcPsu::RtcConfig</a>, <a class="el" href="group__rtcpsu__v1__0.html#ga7226dae4931d57f6e45a86c0b1b8fa2f">XRTC_CALIB_WR_OFFSET</a>, <a class="el" href="group__rtcpsu__v1__0.html#ga5031f5d32d26c4887751966503470c83">XRTC_INT_STS_OFFSET</a>, and <a class="el" href="group__rtcpsu__v1__0.html#gac80374611ede3fc00461df6aaff75028">XRtcPsu_WriteReg</a>.</p>

</div>
</div>
<h2 class="groupheader">Variable Documentation</h2>
<a id="gadf97c5e3ff213a6f3e5cb4851b3cf8e8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gadf97c5e3ff213a6f3e5cb4851b3cf8e8">&#9670;&nbsp;</a></span>XRtcPsu_ConfigTable <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="struct_x_rtc_psu___config.html">XRtcPsu_Config</a> XRtcPsu_ConfigTable[]</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xrtcpsu__sinit_8c.html">xrtcpsu_sinit.c</a>&gt;</code></p>

<p>This table contains configuration information for RTC device in the system. </p>

</div>
</div>
<a id="ga7f054b6447c2f28c939019a778269a6a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga7f054b6447c2f28c939019a778269a6a">&#9670;&nbsp;</a></span>XRtcPsu_ConfigTable <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="struct_x_rtc_psu___config.html">XRtcPsu_Config</a> XRtcPsu_ConfigTable[XPAR_XRTCPSU_NUM_INSTANCES]</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xrtcpsu__g_8c.html">xrtcpsu_g.c</a>&gt;</code></p>
<b>Initial value:</b><div class="fragment"><div class="line">= {</div><div class="line">        {</div><div class="line">                (u16)XPAR_XRTCPSU_0_DEVICE_ID,  </div><div class="line">                (u32)XPAR_XRTCPSU_0_BASEADDR    </div><div class="line">        }</div><div class="line">}</div></div><!-- fragment -->
<p>This table contains configuration information for RTC device in the system. </p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="footer">Copyright &copy; 2015 Xilinx Inc. All rights reserved.</li>
  </ul>
</div>
</body>
</html>
